package com.jingdianjichi.subject.common.enums;

import lombok.Getter;

/**
 * 题目点赞枚举
 */
@Getter
public enum SubjectLikedStatusEnum {
    LIKED(1,"点赞"),
    UN_LIKED(0,"取消");

    public int code;
    public String desc;
    SubjectLikedStatusEnum(int code , String desc){
        this.code = code;
        this.desc = desc;
    }
    public static  ResultCodeEnum getByCode(int codeVal){
        for (ResultCodeEnum resultCodeEnum: ResultCodeEnum.values()){
            if (resultCodeEnum.code == codeVal){
                return resultCodeEnum;
            }
        }
        return  null;
    }
}
